<div id="post_sidebar">
    <?php 
        echo anchor('post/create', 'New Post', 'class="post_nav_button"');
        if($this->session->userdata('role') === 'admin') { 
            echo anchor('post','Posts', 'class="post_nav_button"');
            echo anchor('post/pending/view', 'Pending('.$num_pending.')', 'class="post_nav_button"');
        }
        if ($this->session->userdata('role') !== 'admin') {
            echo anchor('#','My Posts', 'class="post_nav_button"');
            echo anchor('post/rejected', 'Rejected('.$num_reject.')', 'class="post_nav_button"');
        }
        echo anchor('post/draft/'.$this->session->userdata('user_id'), 'Draft('.$num_draft.')', 'class="post_nav_button"');
//            echo anchor('post/trash', 'Trash('.$num_trash.')', 'id="view_trash"');
     ?>
</div>